package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 调用商品接口
 */
@FeignClient("gulimall-product")
public interface ProductMemberSerivce {

    /**
     * 获取分类下所有分组&关联属性
     */
    @GetMapping("/product/attrgroup/{catelogId}/withattr")
    public R withattrList(@PathVariable("catelogId") Long catelogId);
}
